<?php

use Illuminate\Support\Arr;

abstract class TestCase extends Laravel\Lumen\Testing\TestCase
{
    /**
     * Creates the application.
     *
     * @return \Laravel\Lumen\Application
     */
    public function createApplication()
    {
        return require __DIR__ . '/../bootstrap/app.php';
    }

    public function getValue($key)
    {
        $resp = $this->response->getOriginalContent();
        return Arr::get($resp, $key);
    }
}
